package com.alks.function.mapper.finance.salary;


import com.alks.entity.data.entity.PcSalaryEndMonth;
import com.alks.function.data.request.finance.salary.PcBonusEndMonthRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PayrollClosureMapper {

    /*查询：工资封账月份明细*/
    List<PcSalaryEndMonth> getSealedMonthSalaryDetails(@Param("request") PcBonusEndMonthRequest request);

    /*添加数据：工资封账月份明细*/
    int addSealedMonthSalaryDetails(@Param("request") PcSalaryEndMonth pcSalaryEndMonth);

    /*删除：工资封账月份明细*/
    int deleteSealedMonthSalaryDetails(@Param("request") PcSalaryEndMonth pcSalaryEndMonth);

    /**
     * 获取封账月份
     * @param years
     * @param companyId
     * @return
     */
    String getBonusYm(String years, String companyId);
}
